package org.apache.sad.core.framework.utils;

import java.net.InetAddress;

public class ServerInfo {

	private static String physicalHostName;
	private static String wlsServerName;
	
	static {
		try {
			physicalHostName = InetAddress.getLocalHost().getHostName().replace(".cable.comcast.com", "");
		} catch (Exception e) {
			physicalHostName = "UnknownHost";
		}
		wlsServerName = System.getProperty("weblogic.Name", "UnknownServer");
	}
	
	public static String getPhysicalHostName() {
		return physicalHostName;
	}
	
	public static String getWlsServerName() {
		return wlsServerName;
	}

}
